package com.xxf.aynu.parking;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * Created by Rossoneri on 2017/5/13 0013.
 */
public class activity_fore_main extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.watting);
        Handler x= new Handler();
        x.postDelayed(new splashhandler(),2000 );
/*
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
               activity_fore_main.this.finish();
                Toast.makeText(activity_fore_main.this, "请先登录", Toast.LENGTH_SHORT).show();
            }
        },2000);
*/

    }
    class splashhandler implements Runnable{
        public  void run()
        {
            startActivity(new Intent(getApplication(),newlogin.class));
            activity_fore_main.this.finish();
        }
    }
}
